<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>testVue</title>
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<!-- vue.js 插入文本-->
<div id="app">
    {{ message }}
</div>

<!--vue.js 更改样式-->
<div id="app2">
    <span v-bind:title="message1">鼠标悬停</span>
</div>


<script type="application/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            message: 'hello world'
        }
    });
    var app2 = new Vue({
        el: '#app2',
        data: {
            message1: '页面加载于 ' + new Date().toLocaleString()
        }
    })

</script>
</body>
</html>